{% extends 'base.html' %}

{% block content %}
    {% for article_obj in article_list %}
                 <ul class="media-list">
                  <li class="media">
                  <h4 class="media-heading"><a href="/{{ username }}/article/{{ article_obj.pk }}">{{ article_obj.title }}</a></h4>
                    <div class="media-left">
                      <a href="#">
                        <img class="media-object" src="/media/{{ article_obj.blog.userinfo.avatar }}" alt="..." width="60px">
                      </a>
                    </div>
                    <div class="media-body">
                      {{ article_obj.desc }}
                    </div>
                  </li>
                </ul>
                <div class="pull-right">
                    <span>posted&nbsp;&nbsp;</span>
                    <span>@&nbsp;&nbsp;</span>
                    <span>{{ article_obj.create_time|date:'Y-m-d' }}&nbsp;&nbsp;</span>
                    <span>{{ article_obj.blog.userinfo.username }}&nbsp;&nbsp;</span>
                    <span class="glyphicon glyphicon-edit">评论{{ article_obj.comment_num }}&nbsp;</span>
                    <span class="glyphicon glyphicon-thumbs-up">点赞{{ article_obj.up_num }}&nbsp;&nbsp;</span>
                    <span><a href="#">编辑</a></span>
                </div>
               <br>
               <br>
           {% endfor %}
{% endblock %}